import axios from '../utils/request';

// 发布评论
const publishComment = function (data) {
    console.log(data);
    return axios.post('/api/publish/comment',data)
}
// 获取评论列表
const getCommentList = function (data) {
    return axios.get('/api/get/comment',{params:data})
}
// 获取一级评论列表
const getFirstList = function (data) {
    return axios.get('/api/get/first/comment',{params:data})
}

export default {
    publishComment,
    getCommentList,
    getFirstList
}